home *** CD-ROM | disk | FTP | other *** search
-
- In D2, if there are global longstring references,
- there will be an empty try..finally in the init section.
- Not so good.... There is no clean up in the finalization
- section, so there will be a single global leak.
- No big deal, really!
-
- TestInit: initialization
- :0041F4CC 55 push ebp
- :0041F4CD 8BEC mov ebp,esp
- :0041F4CF 53 push ebx
- :0041F4D0 56 push esi
- :0041F4D1 57 push edi
- :0041F4D2 33C0 xor eax,eax
- :0041F4D4 55 push ebp
- :0041F4D5 680CF54100 push 0041F50C
- :0041F4DA 64FF30 push fs:dword ptr [eax]
- :0041F4DD 648920 mov fs:[eax],esp
- :0041F4E0 B8B0054200 mov eax,004205B0
- :0041F4E5 E8BE46FEFF call @AddExitProc
- testinit.25: AutoGlobalP := pointer(longint(@UnitGlobal) +
- :0041F4EA B860164200 mov eax,00421660
- :0041F4EF 83C004 add eax,00000004
- :0041F4F2 A35C164200 mov [0042165C],eax
- testinit.26: UnitGlobal := 0;
- :0041F4F7 33C0 xor eax,eax
- :0041F4F9 A360164200 mov [00421660],eax
- :0041F4FE 33C0 xor eax,eax
- :0041F500 5A pop edx
- :0041F501 59 pop ecx
- :0041F502 59 pop ecx
- :0041F503 648910 mov fs:[eax],edx
- :0041F506 6813F54100 push 0041F513
- testinit.28: finalization
- :0041F50B C3 ret
- :0041F50C E97B39FEFF jmp @HandleFinally
- :0041F511 EBF8 jmp testinit.28 (0041F50B)
- testinit.28: finalization
- :0041F513 5F pop edi
- :0041F514 5E pop esi
- :0041F515 5B pop ebx
- :0041F516 5D pop ebp
- :0041F517 C3 ret
-
-
-